<template>
  <div class="wrap">
    <pro-table
      ref="proTableInst"
      tableTitle="台账列表"
      :columns="columns"
      :request="fetchAssetsPage"
    ></pro-table>
  </div>
</template>

<script lang="ts" setup name="Assets">
  import { ProTableInst } from '@/components/pro-table/type'
  import { useAssetsApi, useAssetsProTable } from './hooks'

  const proTableInst = ref<ProTableInst | null>(null)

  const { userInfo } = getUserInfo()

  const { fetchAssetsPage } = useAssetsApi({
    userInfo
  })
  const { columns } = useAssetsProTable()
</script>

<style lang="less" scoped></style>
